import pika

c = pika.PlainCredentials('admin', '123456')
params = pika.ConnectionParameters('10.6.39.99', 5672, '/', c)

pika.BlockingConnection(parameters=params)
